﻿@model IEnumerable<Microsoft.AspNet.Identity.EntityFramework.IdentityRole>
@{
    ViewBag.Title = "角色列表";
}

<h2>角色列表</h2>
<p>@Html.ActionLink("新建角色", "Create")</p>
<table class="table">
    <tr>
        <th>@Html.Label("角色名称")</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>@Html.DisplayFor(m => item.Name)</td>
            <td>
                @Html.ActionLink("编辑角色", "Edit", new {id = item.Id})|
                @Html.ActionLink("角色详情", "Details", new {id = item.Id})|
                @Html.ActionLink("删除角色", "Delete", new { id = item.Id })
            </td>
        </tr>
    }
</table>

